﻿using System;
using System.Reflection;
using System.Runtime.InteropServices.Expando;
using System.Runtime.InteropServices.ComTypes;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Drawing.Imaging;
using System.Threading;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Net;
using dshow;
using dshow.Core;
using System.Linq;
using System.Text;
using BrainTechLLC.ImageOperators;
using BrainTechLLC;
using System.Configuration;
using System.Diagnostics;
using BrainTechLLC.ThreadSafeObjects;
using System.Windows.Forms;
using System.Windows.Threading;

namespace BrainTechLLC.WebCamLib3
{

    public class OldSchoolUserControl : UserControl
    {
        private System.ComponentModel.IContainer components = null;

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }


        public OldSchoolUserControl()
        {
            InitializeComponent();
            this.HandleCreated += new EventHandler(OldSchoolUserControl_HandleCreated);
        }

        void OldSchoolUserControl_HandleCreated(object sender, EventArgs e)
        {
            SetStyle(
              ControlStyles.UserMouse |
              ControlStyles.Opaque |
              ControlStyles.UserPaint |
              ControlStyles.CacheText, true);
            SetStyle(
              ControlStyles.ResizeRedraw |
              ControlStyles.ContainerControl |
              ControlStyles.SupportsTransparentBackColor, false);
            UpdateStyles();
        }

        private void InitializeComponent()
        {
            this.SuspendLayout();
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
            this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.CausesValidation = false;
            this.Margin = new System.Windows.Forms.Padding(0);
            this.Name = "OldSchoolUserControl";
            this.Size = new System.Drawing.Size(320, 240);
            this.Load += new EventHandler(OldSchoolUserControl_Load);
            this.ResumeLayout(false);

        }

        void OldSchoolUserControl_Load(object sender, EventArgs e)
        {
            this.Paint += new PaintEventHandler(OldSchoolUserControl_Paint);
        }

        void OldSchoolUserControl_Paint(object sender, PaintEventArgs e)
        {
        }
    }
}
